package com.sjy.framework.codemultiplex;

import javax.tools.SimpleJavaFileObject;
import java.net.URI;

public class StrSrcJavaObject extends SimpleJavaFileObject {
    private String content;
    StrSrcJavaObject(String name, String content) {
        super(URI.create("string:///" + name.replace('.', '/') + Kind.SOURCE.extension), Kind.SOURCE);
        this.content = content;
    }
    public CharSequence getCharContent(boolean ignoreEncodingErrors) {
        return content;
    }
}

